<?php

namespace app\api\controller\hezi;

use app\common\controller\Api;
use think\Request;

class Peng extends Api
{

    protected $noNeedLogin = ['*'];
    protected $noNeedRight = ['*'];

    public function get_list()
    {
        $banners = array(
            array(
                'name' => '嗨爆小片',
                'appid' => 'wx38e4080448c98296',
                'banner' => 'https://xcx-1256535092.cos.ap-shanghai.myqcloud.com/jingpinhezi/banner/hbxp1.jpg'
            ),
            array(
                'name' => '蹦蹦Jump',
                'appid' => 'wxfc2e85ad6e4c1691',
                'banner' => 'https://xcx-1256535092.cos.ap-shanghai.myqcloud.com/jingpinhezi/banner/bbjump2.jpg'
            ),
            array(
                'name' => '天天去钓鱼',
                'appid' => 'wxbdd0d9a5187bc731',
                'banner' => 'https://xcx-1256535092.cos.ap-shanghai.myqcloud.com/jingpinhezi/banner/fish.jpg'
            ),
        );
        $hots = array(
            array(
                'name' => '天天去钓鱼',
                'appid' => 'wxbdd0d9a5187bc731',
                'use_num' => '39853',
                'icon' => 'https://xcx-1256535092.cos.ap-shanghai.myqcloud.com/jingpinhezi/img/fish/index.gif'
            ),
            array(
                'name' => '重名查询',
                'appid' => 'wx3093c5ec75efcd7b',
                'use_num' => '37707',
                'icon' => 'https://xcx-1256535092.cos.ap-shanghai.myqcloud.com/jingpinhezi/img/cmcx/index.gif'
            ),
            array(
                'name' => '蹦蹦Jump',
                'appid' => 'wxfc2e85ad6e4c1691',
                'use_num' => '30178',
                'icon' => 'https://xcx-1256535092.cos.ap-shanghai.myqcloud.com/jingpinhezi/img/jump/index.gif'
            ),
            array(
                'name' => '魔盘',
                'appid' => 'wx1ce4c0d710fcec54',
                'use_num' => '23409',
                'icon' => 'https://xcx-1256535092.cos.ap-shanghai.myqcloud.com/jingpinhezi/img/mopan/index.gif'
            ),
            array(
                'name' => '随你搞',
                'appid' => 'wx07cac980fde4202a',
                'use_num' => '36709',
                'icon' => 'https://xcx-1256535092.cos.ap-shanghai.myqcloud.com/jingpinhezi/img/sng/index.gif'
            ),
        );
        $news = array(
            array(
                'name' => '嗨爆小片',
                'appid' => 'wx38e4080448c98296',
                'use_num' => '139853',
                'icon' => 'https://xcx-1256535092.cos.ap-shanghai.myqcloud.com/jingpinhezi/img/haibao/index.gif'
            ),
            array(
                'name' => '天天广场舞教学',
                'appid' => 'wx77a9968ac2c2d9e7',
                'use_num' => '39853',
                'icon' => 'https://xcx-1256535092.cos.ap-shanghai.myqcloud.com/jingpinhezi/img/ttgcwjx/index.gif'
            ),
            array(
                'name' => '悦图籍',
                'appid' => 'wxa626926803a7a03b',
                'use_num' => '21024',
                'icon' => 'https://xcx-1256535092.cos.ap-shanghai.myqcloud.com/jingpinhezi/img/ytj/index.gif'
            ),
            array(
                'name' => '魔力画板',
                'appid' => 'wx72aba8c49ad40eaa',
                'use_num' => '12054',
                'icon' => 'https://xcx-1256535092.cos.ap-shanghai.myqcloud.com/jingpinhezi/img/mlhb/index.gif'
            ),
            array(
                'name' => '脑力答题',
                'appid' => 'wx8325192a2cf3611c',
                'use_num' => '24784',
                'icon' => 'https://xcx-1256535092.cos.ap-shanghai.myqcloud.com/jingpinhezi/img/nldt/index.gif'
            ),
        );
        $list = array(
            array(
                'name' => '随你搞',
                'appid' => 'wx07cac980fde4202a',
                'desc' => '随时随地恶搞生活',
                'icon' => 'https://xcx-1256535092.cos.ap-shanghai.myqcloud.com/jingpinhezi/icon/sng.jpg'
            ),
            array(
                'name' => '魔力画板',
                'appid' => 'wx72aba8c49ad40eaa',
                'desc' => '墨笔丹青,如行云流水绕素笺,展瀚海崇山依旧颜',
                'icon' => 'https://xcx-1256535092.cos.ap-shanghai.myqcloud.com/jingpinhezi/icon/mlhb.gif'
            ),
            array(
                'name' => '脑力答题',
                'appid' => 'wx8325192a2cf3611c',
                'desc' => '丰富知识,脑力答题为您带来古今中外的题目',
                'icon' => 'https://xcx-1256535092.cos.ap-shanghai.myqcloud.com/jingpinhezi/icon/nldt.jpg'
            ),
            array(
                'name' => '魔盘',
                'appid' => 'wx1ce4c0d710fcec54',
                'desc' => '发挥自己的想象,创建自己的艺术',
                'icon' => 'https://xcx-1256535092.cos.ap-shanghai.myqcloud.com/jingpinhezi/icon/mp.jpg'
            ),
        );
        $data['banners'] = $banners;
        $data['hots'] = $hots;
        $data['news'] = $news;
        $data['list'] = $list;
        $this->result('https://xcx-1256535092.cos.ap-shanghai.myqcloud.com/jingpinhezi/banner/hezi.jpg', $data);
    }

    public function get_one(Request $request)
    {
        $data = array(
            'name' => '站桩英雄',
            'appid' => 'wxf6d1b732f6f5d44c',
            'bg' => 'https://xcx-1256535092.cos.ap-shanghai.myqcloud.com/jingpinhezi/bg.jpg'
        );

//        $data = array(
//            'name' => '精品盒子',
//            'appid' => 'wx7c0beb2fc324a64e',
//            'bg' => 'https://xcx-1256535092.cos.ap-shanghai.myqcloud.com/jingpinhezi/bg.jpg'
//        );

        $this->result('', $data);
    }

}
